﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using S2Cloud.SmartFlow.GrpcHelper;

namespace S2_Xxxx_XxxNetApi
{
    public class AppSettings
    {
        /// <summary>
        /// API域名
        /// </summary>
        public static string ApiUrl = GrpcClientSingle.S2GrpcClient.customSettingManager.GetCustomSetting("ApiUrl").Data;

        /// <summary>
        /// 平台数据库链接字符串
        /// </summary>
        public static string MySqlConnectString = GrpcClientSingle.S2GrpcClient.customSettingManager.GetCustomSetting("MySqlConnectString").Data;

        /// <summary>
        /// Oracle数据库链接字符串
        /// </summary>
        public static string OrclConnectString = GrpcClientSingle.S2GrpcClient.customSettingManager.GetCustomSetting("OrclConnectString").Data;

        /// <summary>
        /// SqlServer数据库链接字符串
        /// </summary>
        public static string SqlServerConnectString = GrpcClientSingle.S2GrpcClient.customSettingManager.GetCustomSetting("SqlServerConnectString").Data;

        /// <summary>
        /// Redis数据库链接字符串
        /// </summary>
        public static string RedisConnectString = GrpcClientSingle.S2GrpcClient.customSettingManager.GetCustomSetting("RedisConnectString").Data;

        /// <summary>
        /// 数据库连接类型
        /// </summary>
        public static string DbType = GrpcClientSingle.S2GrpcClient.customSettingManager.GetCustomSetting("DbType").Data;
    }
}
